import {Given, Then} from 'cypress-cucumber-preprocessor/steps';

Given('I visit page', function () {
	cy.visit('http://localhost:3000');
});
Given(`I click {string} button`, function (btnText) {
	cy.findByTestId(btnText).click();
});
Then(`I see {string} in the page`, function (result) {
	cy.findByTestId('result').should('contain.text', result);
});
